﻿using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;

namespace LinkyPOS.Class
{
    class connection
    {
        public static SqlConnection baglanti
        {
            get {

                SqlConnection sqlcon = new SqlConnection("server=.;database=linkypos;Trusted_Connection=true");
                return sqlcon;
            }
        
        }


        public static SqlConnection baglanti2
        {
            get
            {

                SqlConnection sqlcon = new SqlConnection("server=.;database=evreka;Trusted_Connection=true");
                return sqlcon;
            }

        }

        public static MySqlConnection maybag
        {
            get
            {
                MySqlConnectionStringBuilder bag = new MySqlConnectionStringBuilder();
                bag.Server = "94.73.144.236";
                bag.Port = 3306;
                bag.UserID = "admindramacluba";
                bag.Password = "qwe7k1q";
                bag.Database = "dramaclub";

                MySqlConnection mysqlcon = new MySqlConnection(bag.ToString());
                return mysqlcon;
            }

        }

    }
}
